<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>
<%@include file="/fragment/header.jsp"%>
</head>
<body>
    <div id="container">
        <div id="header">
            歡迎, ${user.userName}, <a href="${pageContext.request.contextPath}/logout.do">登出</a>
        </div>
        <%@include file="/fragment/menu.jsp"%>
        你在這&gt;&gt; 專案維護
        <div id="info_msg">
            訊息: <span class="info_msg"> </span>
        </div>
        <form:form method="POST" action="${pageContext.request.contextPath}/proj/findProj.do">
            過濾<form:select path="searchProj" disabled="true">
                <form:option value="ALL">全部</form:option>
                <form:options items="${searchProjs }" />
            </form:select>
            <form:button name="act" value="queryProj" class="btn">查詢</form:button>
            <a href="${pageContext.request.contextPath}/proj/initAddProj.do">新增</a>
        </form:form>
        <table style="width: 100%" border="1">
            <tr class="column_header">
                <td>專案名稱</td>
                <td>狀態</td>
                <td>估計時數</td>
                <td>已用時數</td>
            </tr>
            <c:forEach items="${dataSet}" var="data">
                <tr>
                    <td><a href="${pageContext.request.contextPath }/proj/${data.sn}/initEditProj.do">${data.name}</a></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
            </c:forEach>
        </table>
        <div id="footer"><%@include file="/fragment/footer.jsp"%></div>
    </div>
</body>
</html>
